projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6a8beb
)
Fix padding handling in GtkViewport
author
Alexander Larsson
<alexl@redhat.com>
Mon, 20 Feb 2012 11:11:18 +0000
(12:11 +0100)
committer
Alexander Larsson
<alexl@redhat.com>
Mon, 20 Feb 2012 11:12:05 +0000
(12:12 +0100)
gtk/gtkviewport.c
patch
|
blob
|
history
diff --git
a/gtk/gtkviewport.c
b/gtk/gtkviewport.c
index 6476988beb0339a9c67932abca68f2d4b4e5d638..2b0e2851af794eccba4c493105976c8bba29cc00 100644
(file)
--- a/
gtk/gtkviewport.c
+++ b/
gtk/gtkviewport.c
@@
-343,7
+343,7
@@
viewport_get_view_allocation (GtkViewport *viewport,
}
view_allocation->x += padding.left;
- view_allocation->y += padding.
right
;
+ view_allocation->y += padding.
top
;
view_allocation->width = MAX (1, allocation.width - padding.left - padding.right - border_width * 2);
view_allocation->height = MAX (1, allocation.height - padding.top - padding.bottom - border_width * 2);